package fem2.gui.actions;

import fem2.gui.ModelHolder;
import inf.vtk.pm.PipelineCollection;

import javax.swing.AbstractAction;

abstract class ActionBase extends AbstractAction {

	private static final long serialVersionUID = 1L;

	PipelineCollection pipelineCollection_;

	ActionBase(String name, PipelineCollection pc) {
		super(name);
		pipelineCollection_ = pc;
	}

	ModelHolder getCastedModel() {
		return (ModelHolder) pipelineCollection_.getModel();
	}

}